
class Watch{
	constructor(data, key, cb) {
	   this.cb = cb; 
	   Dep.target = this;
	   this.oldValue = data[key];
	   Dep.target = null;
	}
	
	update(value) {
		if(this.oldValue !== value) {
			this.cb(value);
		}
	}
}